bootstrap: Uncaught TypeError: Object [object Object] has no method 'tooltip', 'typeahead'

Posted by DarkKnightFan on Stack Overflow See other posts from Stack Overflow or by DarkKnightFan
Published on 2012-10-06T21:36:06Z Indexed on 2012/10/06 21:36 UTC
Read the original article Hit count: 526

I am trying to use the tooltip, typeahead, datepicker features of bootstrap. But I keep getting these errors in the console!

Uncaught TypeError: Object [object Object] has no method 'tooltip'
Uncaught TypeError: Object [object Object] has no method 'typeahead'

This is how my imports look like:

<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/datepicker.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<script type="text/javascript" src="js/jquery-1.8.0.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
<script type="text/javascript" src="js/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="js/bootstrap-typeahead.js"></script>
<script type="text/javascript" src="js/highcharts.js"></script>
<script type="text/javascript" src="js/exporting.js"></script>
<link type="text/css" rel="stylesheet" href="css/jquery.dropdown.css" />
<script type="text/javascript" src="js/jquery.dropdown.js"></script>

Some sample code:

<a class="btn btn-success" data-toggle="modal" href="#payments"
           rel="tooltip" data-placement="top" title="Record your payments">
            <i class="icon-check icon-white"></i> Payments</a>

$("#payments").tooltip('show');

Similarly I have code for datepicker and typeahead.

any solution?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-ui